﻿const express=  require('express')
const logger = require('morgan')
const body = require('body-parser')

const router = require('./router/router(xkx)')
const router1 = require('./router/router(jjy)')
const router2 = require('./router/router(zhl)')
const router3 = require('./router/router(zx)')
const router4 = require('./router/router(wt)')
const router5 = require('./router/router(yl)')
const router6 = require('./router/router(djl)')
const myapp = express()

myapp.use(logger('dev'))
myapp.use(body.urlencoded({extended:false}))
myapp.use(body.json())
myapp.use(router)
myapp.use(router1)
myapp.use(router2)
myapp.use(router3)
myapp.use(router4)
myapp.use(router5)
myapp.use(router6)
myapp.use(express.static(__dirname+'/src'))

myapp.listen(8888,function () {
    console.log('test07服务器启动')
})